<!DOCTYPE html>
<html lang="">

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width,initial-scale=1.0">
  <link rel="icon" href="<%= BASE_URL %>favicon.ico">
  <title>
    <%= htmlWebpackPlugin.options.title %>
  </title>
</head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
<script>
  // Check if Three.js loaded correctly
  if (typeof THREE === 'undefined') {
    const script = document.createElement('script');
    script.src = 'https://unpkg.com/three@0.128.0/build/three.js';
    document.head.appendChild(script);
  }
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/examples/js/controls/OrbitControls.js"></script>
<script>
  // Check if OrbitControls loaded correctly
  if (typeof THREE === 'undefined' || typeof THREE.OrbitControls === 'undefined') {
    const script = document.createElement('script');
    script.src = 'https://unpkg.com/three@0.128.0/examples/js/controls/OrbitControls.js';
    document.head.appendChild(script);
  }
</script>
<script src="./configs/warehouse3d.js" defer></script>

<body>
  <noscript>
    <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled.
        Please enable it to continue.</strong>
  </noscript>
  <div id="app"></div>
  <!-- built files will be auto injected -->
</body>

</html>